package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.product.entity.CategoryEntity;
import com.example.gulimall.product.vo.CateLog2Vo;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 商品三级分类
 *
 * @author zyred
 * @email zyred@163.com
 * @date 2021-08-23 10:31:18
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> tree();

    void removeBatchById(List<Long> asList);

    void updateCascade(CategoryEntity category);

    Long[] selectCatalogPath(Long catelogId);

    List<CategoryEntity> getBatchId(Set<Long> cateLogIds);

    List<CategoryEntity> getCategoryByLevel(int level, Long parentId);

    Map<String, List<CateLog2Vo>> getCateLogJson();

}

